package org.xshop.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.ibase4j.core.base.BaseModel;

/**
 * <p>
 * 首页
 * </p>
 *
 * @author ShenHuaJie
 * @since 2018-03-01
 */
@ApiModel(value = "首页", description = "APP首页的一个模块")
@TableName("t_main_index")
@SuppressWarnings("serial")
public class TMainIndex extends BaseModel {

    @TableField("type_")
    @ApiModelProperty(value = "类型(0轮播图1限时抢购2推荐商家3特价商品4热门商品)")
    private String type;
    @TableField("type_id")

    @ApiModelProperty(value = "商家或商品编号")
    private Long typeId;

    @TableField("store_id")
    @ApiModelProperty(value = "商家编号")
    private Long storeId;
    
    @ApiModelProperty(value = "标题")
    @TableField("title_")
    private String title;

    @ApiModelProperty(value = "二级标题")
    @TableField("sub_title")
    private String subTitle;

    @ApiModelProperty(value = "图片地址")
    @TableField("image_url")
    private String imageUrl;

    @TableField("sort_no")
    @ApiModelProperty("排序")
    private Integer sortNo;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private String typeName;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private Date startTime;

    @TableField(exist = false)
    @ApiModelProperty("结束时间")
    private Date endTime;
    
    @TableField(exist = false)
    @ApiModelProperty("商品")
    private TGoods goods;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public TGoods getGoods() {
		return goods;
	}

	public void setGoods(TGoods goods) {
		this.goods = goods;
	}
    
}
